<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/js/date/skin/WdatePicker.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/easyui/easyui.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/date/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/autocomplate/jquery.autocomplete.js"></script>
<script type="text/javascript">
$(function(){
		$('#merVm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merVs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merMm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merMs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merJm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merJs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merAm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merAs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merCm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merCs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merDm').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		$('#merDs').autocomplete({
		    	serviceUrl: '<%=request.getContextPath()%>/bank_auto.html',
		    	minChars:1,
		    	paramName:'bnkNo',
		    	transformResult: function(response) {
				　　return {
				　　　　suggestions: $.map($.parseJSON(response), function(dataItem) {
				　　　　　　return { value: dataItem.bnkNo, data: dataItem.bnkName};
				　　　　})
				　　};
				},
		    	formatResult:function (suggestion, currentValue) {
		    		return "[" + suggestion.value.replace(currentValue,"<strong>"+currentValue+"</strong>")+ "]" + suggestion.data;
		    	}
		});
		
		$("#sform").validate({
			rules : {
				merNo : {
					required : true
				},
				merVe : {
					required : true
				},
				merVm : {
					required : true
				},
				merVb : {
					required : true
				},
				merVs : {
					required : true
				},
				merVp : {
					required : true,
					number : true
				},
				merVd : {
					required : true,
					number : true
				},
				merMe : {
					required : true
				},
				merMm : {
					required : true
				},
				merMb : {
					required : true
				},
				merMs : {
					required : true
				},
				merMp : {
					required : true,
					number : true
				},
				merMd : {
					required : true,
					number : true
				},
				merJe : {
					required : true
				},
				merJm : {
					required : true
				},
				merJb : {
					required : true
				},
				merJs : {
					required : true
				},
				merJp : {
					required : true,
					number : true
				},
				merJd : {
					required : true,
					number : true
				},
				merAe : {
					required : true
				},
				merAm : {
					required : true
				},
				merAb : {
					required : true
				},
				merAs : {
					required : true
				},
				merAp : {
					required : true,
					number : true
				},
				merAd : {
					required : true,
					number : true
				},
				merCe : {
					required : true
				},
				merCm : {
					required : true
				},
				merCb : {
					required : true
				},
				merCs : {
					required : true
				},
				merCp : {
					required : true,
					number : true
				},
				merCd : {
					required : true,
					number : true
				},
				merDe : {
					required : true
				},
				merDm : {
					required : true
				},
				merDb : {
					required : true
				},
				merDs : {
					required : true
				},
				merDp : {
					required : true,
					number : true
				},
				merDd : {
					required : true,
					number : true
				}
			},
			errorPlacement : function(error, element) {
				element.css("border-color", "#1c3e57");
			},
		});
	});
</script>
</head>
<body>
	<div class="easyui-panel" title="编辑面板" style="width: 100%;" data-options="fit:true">
		<form id="sform" action="merchant_savebank.html" method="post" enctype="multipart/form-data">
			<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">商户编号 :</td>
					<td><s:property value="merchantBean.merNo" /><input type="hidden" placeholder="商户编号" name="merNo" id="merNo" value="<s:property value="merchantBean.merNo"/>" /></td>
					<td>固定为4位整数作为商编,请严格遵守此规则</td>
				</tr>
				<tr>
					<td height="30" align="right">v卡开通状态 :</td>
					<td><s:radio id="merVe" name="merVe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merVe"></s:radio></td>
					<td>VISA卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">v卡收单行 :</td>
					<td><input type="text" placeholder="v卡收单行" name="merVm" id="merVm" value="<s:property value="merchantBean.merVm"/>" /></td>
					<td>VISA卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">v卡备通道开通状态 :</td>
					<td><s:radio id="merVb" name="merVb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merVb"></s:radio></td>
					<td>VISA卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">v卡备收单行 :</td>
					<td><input type="text" placeholder="v卡备收单行" name="merVs" id="merVs" value="<s:property value="merchantBean.merVs"/>" /></td>
					<td>VISA卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">v佣金费率 :</td>
					<td><input type="text" placeholder="v佣金费率" name="merVp" id="merVp" value="<s:if test="merchantBean.merVp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merVp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>VISA佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">v押金比例 :</td>
					<td><input type="text" placeholder="v押金比例" name="merVd" id="merVd" value="<s:if test="merchantBean.merVd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merVd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>VISA交易押金比例(%)</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">m卡开通状态 :</td>
					<td><s:radio id="merMe" name="merMe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merMe"></s:radio></td>
					<td>MASTER卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">m卡收单行 :</td>
					<td><input type="text" placeholder="m卡收单行" name="merMm" id="merMm" value="<s:property value="merchantBean.merMm"/>" /></td>
					<td>MASTER卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">m卡备通道开通状态 :</td>
					<td><s:radio id="merMb" name="merMb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merMb"></s:radio></td>
					<td>MASTER卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">m卡备收单行 :</td>
					<td><input type="text" placeholder="m卡备收单行" name="merMs" id="merMs" value="<s:property value="merchantBean.merMs"/>" /></td>
					<td>MASTER卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">m佣金费率 :</td>
					<td><input type="text" placeholder="m佣金费率" name="merMp" id="merMp" value="<s:if test="merchantBean.merMp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merMp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>MASTER佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">m押金比例 :</td>
					<td><input type="text" placeholder="m押金比例" name="merMd" id="merMd" value="<s:if test="merchantBean.merMd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merMd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>MASTER交易押金比例(%)</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">j卡开通状态 :</td>
					<td><s:radio id="merJe" name="merJe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merJe"></s:radio></td>
					<td>JCB卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">j卡收单行 :</td>
					<td><input type="text" placeholder="j卡收单行" name="merJm" id="merJm" value="<s:property value="merchantBean.merJm"/>" /></td>
					<td>JCB卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">j卡备通道开通状态 :</td>
					<td><s:radio id="merJb" name="merJb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merJb"></s:radio></td>
					<td>JCB卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">j卡备收单行 :</td>
					<td><input type="text" placeholder="j卡备收单行" name="merJs" id="merJs" value="<s:property value="merchantBean.merJs"/>" /></td>
					<td>JCB卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">j佣金费率 :</td>
					<td><input type="text" placeholder="j佣金费率" name="merJp" id="merJp" value="<s:if test="merchantBean.merJp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merJp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>JCB佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">j押金比例 :</td>
					<td><input type="text" placeholder="j押金比例" name="merJd" id="merJd" value="<s:if test="merchantBean.merJd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merJd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>JCB交易押金比例(%)</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">a卡开通状态 :</td>
					<td><s:radio id="merAe" name="merAe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merAe"></s:radio></td>
					<td>AE卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">a卡收单行 :</td>
					<td><input type="text" placeholder="a卡收单行" name="merAm" id="merAm" value="<s:property value="merchantBean.merAm"/>" /></td>
					<td>AE卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">a卡备通道开通状态 :</td>
					<td><s:radio id="merAb" name="merAb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merAb"></s:radio></td>
					<td>AE卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">a卡备收单行 :</td>
					<td><input type="text" placeholder="a卡备收单行" name="merAs" id="merAs" value="<s:property value="merchantBean.merAs"/>" /></td>
					<td>AE卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">a佣金费率 :</td>
					<td><input type="text" placeholder="a佣金费率" name="merAp" id="merAp" value="<s:if test="merchantBean.merAp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merAp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>AE佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">a押金比例 :</td>
					<td><input type="text" placeholder="a押金比例" name="merAd" id="merAd" value="<s:if test="merchantBean.merAd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merAd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>AE交易押金比例(%)</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">c卡开通状态 :</td>
					<td><s:radio id="merCe" name="merCe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merCe"></s:radio></td>
					<td>CLUB卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">c卡收单行 :</td>
					<td><input type="text" placeholder="c卡收单行" name="merCm" id="merCm" value="<s:property value="merchantBean.merCm"/>" /></td>
					<td>CLUB卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">c卡备通道开通状态 :</td>
					<td><s:radio id="merCb" name="merCb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merCb"></s:radio></td>
					<td>CLUB卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">c卡备收单行 :</td>
					<td><input type="text" placeholder="c卡备收单行" name="merCs" id="merCs" value="<s:property value="merchantBean.merCs"/>" /></td>
					<td>CLUB卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">c佣金费率 :</td>
					<td><input type="text" placeholder="c佣金费率" name="merCp" id="merCp" value="<s:if test="merchantBean.merCp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merCp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>CLUB佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">c押金比例 :</td>
					<td><input type="text" placeholder="c押金比例" name="merCd" id="merCd" value="<s:if test="merchantBean.merCd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merCd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>CLUB交易押金比例(%)</td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr>
					<td height="30" align="right">d卡开通状态 :</td>
					<td><s:radio id="merDe" name="merDe" list="#{'0':'无效','1':'有效'}" value="merchantBean.merDe"></s:radio></td>
					<td>DESCOVER卡开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">d卡收单行 :</td>
					<td><input type="text" placeholder="d卡收单行" name="merDm" id="merDm" value="<s:property value="merchantBean.merDm"/>" /></td>
					<td>DESCOVER卡收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">d卡备通道开通状态 :</td>
					<td><s:radio id="merDb" name="merDb" list="#{'0':'无效','1':'有效'}" value="merchantBean.merDb"></s:radio></td>
					<td>DESCOVER卡备通道开通状态</td>
				</tr>
				<tr>
					<td height="30" align="right">d卡备收单行 :</td>
					<td><input type="text" placeholder="d卡备收单行" name="merDs" id="merDs" value="<s:property value="merchantBean.merDs"/>" /></td>
					<td>DESCOVER卡备收单行编码</td>
				</tr>
				<tr>
					<td height="30" align="right">d佣金费率 :</td>
					<td><input type="text" placeholder="d佣金费率" name="merDp" id="merDp" value="<s:if test="merchantBean.merDp!=null"><s:text name="global.format.number"><s:param value="merchantBean.merDp"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>DESCOVER佣金费率(%)</td>
				</tr>
				<tr>
					<td height="30" align="right">d押金比例 :</td>
					<td><input type="text" placeholder="d押金比例" name="merDd" id="merDd" value="<s:if test="merchantBean.merDd!=null"><s:text name="global.format.number"><s:param value="merchantBean.merDd"/></s:text></s:if>"
						onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td>
					<td>DESCOVER交易押金比例(%)</td>
				</tr>

				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>

